﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserArea.ascx.cs"
    Inherits="HZ.Supervise.Web.Common.WebUserArea" %>

<script src="../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>

<script type="text/javascript">
//    $().ready(function() {

//    });


    function loadcity() {

        $.get("../Common/GetArea.ashx", { areaid: $("#WebUserArea1_ddlCity").val() }, function(data) {
            $("#WebUserArea1_ddlCountry").empty();

            for (var n in data) {
                $("#WebUserArea1_ddlCountry").append("<option value='" + data[n] + "'>" + n + "</option>");
            }
        }, "json");
    }
</script>

<table>
    <tr>
        <td>
            地市：
        </td>
        <td>
            <select id="ddlCity" onchange="return loadcity();" runat="server"   
                style="width:140px" >
            </select>
        </td>
    </tr>
    <tr>
        <td>
            县区：
        </td>
        <td>
            <select id="ddlCountry" runat="server"  style="width:140px"  >  
            </select>
        </td>
    </tr>
</table>
